<?php if($sf_user->isAuthenticated() and $sf_user->hasCredential('roditelj')){?>
<div id="menu">
   <a href="/home/pocetna"><img src="/images/link/rod_pocetna.jpg" alt="pocetna" /></a>
   <?php $ucenik = $uceniks[0]; echo link_to('<img src="/images/link/rod_dnevnik.jpg" alt="dnevnik" />', 'roditelj/dnevnik?ucenik_id='.$ucenik->getId(), array('target' => '_blank', 'onclick' => 'popup(this.href, "Školski dnevnik '.$ucenik->joinIme().'", 1024, 800); return false;')) ?>
   <?php echo link_to('<img src="/images/link/rod_placanje.jpg" alt="placanje" />', 'roditelj/placanje'); ?>
   <?php echo link_to('<img src="/images/link/rod_podesavanja.jpg" alt="podešavanja" />', 'roditelj/settings'); ?>
   <a href="/home/kontakt"><img src="/images/link/rod_kontakt.jpg" alt="kontakt" /></a>
   <?php echo link_to('<img src="/images/link/rod_predlozi_greske.jpg" alt="predlozi" />', 'greske/greske'); ?>
   <?php echo link_to('<img id="im_b" src="/images/link/rod_logout.jpg" alt="logout" />', 'user/logout');?>
 </div>
<?php }?>

<?php if($sf_user->isAuthenticated() and $sf_user->hasCredential('ucenik')){?>
<ul id="secMenu" style="margin-top: 285px;">
  <li><?php echo $profil ?></li>
  <li class="big_link"><?php echo link_to(__('Izloguj se'), 'user/logout');?></li>
</ul>
<?php }?>